home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / AppleTalk.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  30.4 KB  |  1,107 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        AppleTalk.a
  3. ;
  4. ;    Contains:    AppleTalk Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__APPLETALK__') = 'UNDEFINED' THEN
  21. __APPLETALK__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  30.     include 'OSUtils.a'
  31.     ENDIF
  32. ;        include 'MixedMode.a'                                        ;
  33. ;        include 'Memory.a'                                            ;
  34.  
  35. ; Driver unit and reference numbers (ADSP is dynamic) 
  36. mppUnitNum                        EQU        9                    ; MPP unit number 
  37. atpUnitNum                        EQU        10                    ; ATP unit number 
  38. xppUnitNum                        EQU        40                    ; XPP unit number 
  39. mppRefNum                        EQU        -10                    ; MPP reference number 
  40. atpRefNum                        EQU        -11                    ; ATP reference number 
  41. xppRefNum                        EQU        -41                    ; XPP reference number 
  42. ; .MPP csCodes 
  43. lookupReply                        EQU        242                    ; This command queued to ourself 
  44. writeLAP                        EQU        243                    ; Write out LAP packet 
  45. detachPH                        EQU        244                    ; Detach LAP protocol handler 
  46. attachPH                        EQU        245                    ; Attach LAP protocol handler 
  47. writeDDP                        EQU        246                    ; Write out DDP packet 
  48. closeSkt                        EQU        247                    ; Close DDP socket 
  49. openSkt                            EQU        248                    ; Open DDP socket 
  50. loadNBP                            EQU        249                    ; Load NBP command-executing code 
  51. lastResident                    EQU        249                    ; Last resident command 
  52. confirmName                        EQU        250                    ; Confirm name 
  53. lookupName                        EQU        251                    ; Look up name on internet 
  54. removeName                        EQU        252                    ; Remove name from Names Table 
  55. registerName                    EQU        253                    ; Register name in Names Table 
  56. killNBP                            EQU        254                    ; Kill outstanding NBP request 
  57.  
  58. unloadNBP                        EQU        255                    ; Unload NBP command code 
  59. setSelfSend                        EQU        256                    ; MPP: Set to allow writes to self 
  60. SetMyZone                        EQU        257                    ; Set my zone name 
  61. GetATalkInfo                    EQU        258                    ; get AppleTalk information 
  62. ATalkClosePrep                    EQU        259                    ; AppleTalk close query 
  63. ; .ATP csCodes 
  64. nSendRequest                    EQU        248                    ; NSendRequest code 
  65. relRspCB                        EQU        249                    ; Release RspCB 
  66. closeATPSkt                        EQU        250                    ; Close ATP socket 
  67. addResponse                        EQU        251                    ; Add response code | Require open skt 
  68. sendResponse                    EQU        252                    ; Send response code 
  69. getRequest                        EQU        253                    ; Get request code 
  70. openATPSkt                        EQU        254                    ; Open ATP socket 
  71. sendRequest                        EQU        255                    ; Send request code 
  72. relTCB                            EQU        256                    ; Release TCB 
  73. killGetReq                        EQU        257                    ; Kill GetRequest 
  74. killSendReq                        EQU        258                    ; Kill SendRequest 
  75. killAllGetReq                    EQU        259                    ; Kill all getRequests for a skt 
  76. ; .XPP csCodes 
  77. openSess                        EQU        255                    ; Open session 
  78. closeSess                        EQU        254                    ; Close session 
  79. userCommand                        EQU        253                    ; User command 
  80.  
  81. userWrite                        EQU        252                    ; User write 
  82. getStatus                        EQU        251                    ; Get status 
  83. afpCall                            EQU        250                    ; AFP command (buffer has command code) 
  84. getParms                        EQU        249                    ; Get parameters 
  85. abortOS                            EQU        248                    ; Abort open session request 
  86. closeAll                        EQU        247                    ; Close all open sessions 
  87. xCall                            EQU        246                    ; .XPP extended calls 
  88. ; Transition Queue transition types 
  89. ATTransOpen                        EQU        0                    ;AppleTalk has opened
  90. ATTransClose                    EQU        2                    ;AppleTalk is about to close
  91. ATTransClosePrep                EQU        3                    ;Is it OK to close AppleTalk ?
  92. ATTransCancelClose                EQU        4                    ;Cancel the ClosePrep transition
  93. afpByteRangeLock                EQU        1                    ;AFPCall command codes
  94. afpVolClose                        EQU        2                    ;AFPCall command codes
  95. afpDirClose                        EQU        3                    ;AFPCall command codes
  96. afpForkClose                    EQU        4                    ;AFPCall command codes
  97. afpCopyFile                        EQU        5                    ;AFPCall command codes
  98. afpDirCreate                    EQU        6                    ;AFPCall command codes
  99. afpFileCreate                    EQU        7                    ;AFPCall command codes
  100. afpDelete                        EQU        8                    ;AFPCall command codes
  101. afpEnumerate                    EQU        9                    ;AFPCall command codes
  102.  
  103. afpFlush                        EQU        10                    ;AFPCall command codes
  104. afpForkFlush                    EQU        11                    ;AFPCall command codes
  105. afpGetDirParms                    EQU        12                    ;AFPCall command codes
  106. afpGetFileParms                    EQU        13                    ;AFPCall command codes
  107. afpGetForkParms                    EQU        14                    ;AFPCall command codes
  108. afpGetSInfo                        EQU        15                    ;AFPCall command codes
  109. afpGetSParms                    EQU        16                    ;AFPCall command codes
  110. afpGetVolParms                    EQU        17                    ;AFPCall command codes
  111. afpLogin                        EQU        18                    ;AFPCall command codes
  112. afpContLogin                    EQU        19                    ;AFPCall command codes
  113. afpLogout                        EQU        20                    ;AFPCall command codes
  114. afpMapID                        EQU        21                    ;AFPCall command codes
  115. afpMapName                        EQU        22                    ;AFPCall command codes
  116. afpMove                            EQU        23                    ;AFPCall command codes
  117. afpOpenVol                        EQU        24                    ;AFPCall command codes
  118. afpOpenDir                        EQU        25                    ;AFPCall command codes
  119. afpOpenFork                        EQU        26                    ;AFPCall command codes
  120. afpRead                            EQU        27                    ;AFPCall command codes
  121. afpRename                        EQU        28                    ;AFPCall command codes
  122. afpSetDirParms                    EQU        29                    ;AFPCall command codes
  123.  
  124. afpSetFileParms                    EQU        30                    ;AFPCall command codes
  125. afpSetForkParms                    EQU        31                    ;AFPCall command codes
  126. afpSetVolParms                    EQU        32                    ;AFPCall command codes
  127. afpWrite                        EQU        33                    ;AFPCall command codes
  128. afpGetFlDrParms                    EQU        34                    ;AFPCall command codes
  129. afpSetFlDrParms                    EQU        35                    ;AFPCall command codes
  130. afpDTOpen                        EQU        48                    ;AFPCall command codes
  131. afpDTClose                        EQU        49                    ;AFPCall command codes
  132. afpGetIcon                        EQU        51                    ;AFPCall command codes
  133. afpGtIcnInfo                    EQU        52                    ;AFPCall command codes
  134. afpAddAPPL                        EQU        53                    ;AFPCall command codes
  135. afpRmvAPPL                        EQU        54                    ;AFPCall command codes
  136. afpGetAPPL                        EQU        55                    ;AFPCall command codes
  137. afpAddCmt                        EQU        56                    ;AFPCall command codes
  138. afpRmvCmt                        EQU        57                    ;AFPCall command codes
  139. afpGetCmt                        EQU        58                    ;AFPCall command codes
  140. afpAddIcon                        EQU        192                    ;Special code for ASP Write commands
  141. xppLoadedBit                    EQU        5                    ; XPP bit in PortBUse 
  142. scbMemSize                        EQU        192                    ; Size of memory for SCB 
  143. xppFlagClr                        EQU        0                    ; Cs for AFPCommandBlock 
  144.  
  145. xppFlagSet                        EQU        128                    ; StartEndFlag & NewLineFlag fields. 
  146. lapSize                            EQU        20
  147. ddpSize                            EQU        26
  148. nbpSize                            EQU        26
  149. atpSize                            EQU        56
  150. atpXOvalue                        EQU        32                    ;ATP exactly-once bit 
  151. atpEOMvalue                        EQU        16                    ;ATP End-Of-Message bit 
  152. atpSTSvalue                        EQU        8                    ;ATP Send-Transmission-Status bit 
  153. atpTIDValidvalue                EQU        2                    ;ATP trans. ID valid bit 
  154. atpSendChkvalue                    EQU        1                    ;ATP send checksum bit 
  155. zipGetLocalZones                EQU        5
  156. zipGetZoneList                    EQU        6
  157. zipGetMyZone                    EQU        7
  158. LAPMgrPtr                        EQU        $B18                ;Entry point for LAP Manager
  159. LAPMgrCall                        EQU        2                    ;Offset to LAP routines
  160. LAddAEQ                            EQU        23                    ;LAPAddATQ routine selector
  161. LRmvAEQ                            EQU        24                    ;LAPRmvATQ routine selector
  162.  
  163. tLAPRead                        EQU        0
  164. tLAPWrite                        EQU        1
  165. tDDPRead                        EQU        2
  166. tDDPWrite                        EQU        3
  167. tNBPLookup                        EQU        4
  168. tNBPConfirm                        EQU        5
  169. tNBPRegister                    EQU        6
  170. tATPSndRequest                    EQU        7
  171. tATPGetRequest                    EQU        8
  172. tATPSdRsp                        EQU        9
  173. tATPAddRsp                        EQU        10
  174. tATPRequest                        EQU        11
  175. tATPResponse                    EQU        12
  176.  
  177. ; typedef SInt8             ABCallType
  178.  
  179. lapProto                        EQU        0
  180. ddpProto                        EQU        1
  181. nbpProto                        EQU        2
  182. atpProto                        EQU        3
  183.  
  184. ; typedef UInt8             ABProtoType
  185. ; typedef Byte                 ABByte
  186. LAPAdrBlock             RECORD    0
  187. dstNodeID                 ds.b   1        ; offset: $0 (0)
  188. srcNodeID                 ds.b   1        ; offset: $1 (1)
  189. lapProtType                 ds.b   1        ; offset: $2 (2)
  190. filler                     ds.b   1        ; offset: $3 (3)        ;    Filler for proper byte alignment
  191. sizeof                     EQU *            ; size:   $4 (4)
  192.                         ENDR
  193.  
  194. ; typedef struct LAPAdrBlock  LAPAdrBlock
  195. ; typedef struct ATQEntry     ATQEntry, *ATQEntryPtr
  196. ; typedef ATalkTransitionEventUPP  ATalkTransitionEvent
  197. ATQEntry                 RECORD    0
  198. qLink                     ds.l   1        ; offset: $0 (0)        ;next queue entry
  199. qType                     ds.w   1        ; offset: $4 (4)        ;queue type
  200. CallAddr                 ds.l   1        ; offset: $6 (6)        ;your routine descriptor
  201. sizeof                     EQU *            ; size:   $A (10)
  202.                         ENDR
  203.  
  204. AddrBlock                 RECORD    0
  205. aNet                     ds.w   1        ; offset: $0 (0)
  206. aNode                     ds.b   1        ; offset: $2 (2)
  207. aSocket                     ds.b   1        ; offset: $3 (3)
  208. sizeof                     EQU *            ; size:   $4 (4)
  209.                         ENDR
  210.  
  211. ; typedef struct AddrBlock     AddrBlock
  212. ;    Real definition of EntityName is 3 PACKED strings of any length (32 is just an example). No
  213. ;    offests for Asm since each String address must be calculated by adding length byte to last string ptr.
  214. ;    In Pascal, String(32) will be 34 bytes long since fields never start on an odd byte unless they are 
  215. ;    only a byte long. So this will generate correct looking interfaces for Pascal and C, but they will not
  216. ;    be the same, which is OK since they are not used. 
  217. ;
  218. EntityName                 RECORD    0
  219. objStr                     ds.b   33        ; offset: $0 (0)
  220. pad1                     ds.b   1        ; offset: $21 (33)
  221. typeStr                     ds.b   33        ; offset: $22 (34)
  222. pad2                     ds.b   1        ; offset: $43 (67)
  223. zoneStr                     ds.b   33        ; offset: $44 (68)
  224.                          ORG 102
  225. sizeof                     EQU *            ; size:   $66 (102)
  226.                         ENDR
  227.  
  228. ; typedef struct EntityName  EntityName
  229. ; typedef EntityName         *EntityPtr
  230. RetransType             RECORD    0
  231. retransInterval             ds.b   1        ; offset: $0 (0)
  232. retransCount             ds.b   1        ; offset: $1 (1)
  233. sizeof                     EQU *            ; size:   $2 (2)
  234.                         ENDR
  235.  
  236. ; typedef struct RetransType  RetransType
  237. BDSElement                 RECORD    0
  238. buffSize                 ds.w   1        ; offset: $0 (0)
  239. buffPtr                     ds.l   1        ; offset: $2 (2)
  240. dataSize                 ds.w   1        ; offset: $6 (6)
  241. userBytes                 ds.l   1        ; offset: $8 (8)
  242. sizeof                     EQU *            ; size:   $C (12)
  243.                         ENDR
  244.  
  245. ; typedef struct BDSElement  BDSElement
  246. ; typedef BDSElement         BDSType[8]
  247. ; typedef BDSElement         *BDSPtr
  248. ; typedef char                 BitMapType
  249. ATLAPRec                 RECORD    0
  250. abOpcode                 ds.b   1        ; offset: $0 (0)
  251. filler                     ds.b   1        ; offset: $1 (1)        ;    Filler for proper byte alignment
  252. abResult                 ds.w   1        ; offset: $2 (2)
  253. abUserReference             ds.l   1        ; offset: $4 (4)
  254. lapAddress                 ds     LAPAdrBlock ; offset: $8 (8)
  255. lapReqCount                 ds.w   1        ; offset: $C (12)
  256. lapActCount                 ds.w   1        ; offset: $E (14)
  257. lapDataPtr                 ds.l   1        ; offset: $10 (16)
  258. sizeof                     EQU *            ; size:   $14 (20)
  259.                         ENDR
  260.  
  261. ; typedef struct ATLAPRec     ATLAPRec
  262. ; typedef ATLAPRec             *ATLAPRecPtr, **ATLAPRecHandle
  263. ATDDPRec                 RECORD    0
  264. abOpcode                 ds.b   1        ; offset: $0 (0)
  265. filler                     ds.b   1        ; offset: $1 (1)        ;    Filler for proper byte alignment
  266. abResult                 ds.w   1        ; offset: $2 (2)
  267. abUserReference             ds.l   1        ; offset: $4 (4)
  268. ddpType                     ds.w   1        ; offset: $8 (8)
  269. ddpSocket                 ds.w   1        ; offset: $A (10)
  270. ddpAddress                 ds     AddrBlock ; offset: $C (12)
  271. ddpReqCount                 ds.w   1        ; offset: $10 (16)
  272. ddpActCount                 ds.w   1        ; offset: $12 (18)
  273. ddpDataPtr                 ds.l   1        ; offset: $14 (20)
  274. ddpNodeID                 ds.w   1        ; offset: $18 (24)
  275. sizeof                     EQU *            ; size:   $1A (26)
  276.                         ENDR
  277.  
  278. ; typedef struct ATDDPRec     ATDDPRec
  279. ; typedef ATDDPRec             *ATDDPRecPtr, **ATDDPRecHandle
  280. ATNBPRec                 RECORD    0
  281. abOpcode                 ds.b   1        ; offset: $0 (0)
  282. filler                     ds.b   1        ; offset: $1 (1)        ;    Filler for proper byte alignment
  283. abResult                 ds.w   1        ; offset: $2 (2)
  284. abUserReference             ds.l   1        ; offset: $4 (4)
  285. nbpEntityPtr             ds.l   1        ; offset: $8 (8)
  286. nbpBufPtr                 ds.l   1        ; offset: $C (12)
  287. nbpBufSize                 ds.w   1        ; offset: $10 (16)
  288. nbpDataField             ds.w   1        ; offset: $12 (18)
  289. nbpAddress                 ds     AddrBlock ; offset: $14 (20)
  290. nbpRetransmitInfo         ds     RetransType ; offset: $18 (24)
  291. sizeof                     EQU *            ; size:   $1A (26)
  292.                         ENDR
  293.  
  294. ; typedef struct ATNBPRec     ATNBPRec
  295. ; typedef ATNBPRec             *ATNBPRecPtr, **ATNBPRecHandle
  296. ATATPRec                 RECORD    0
  297. abOpcode                 ds.b   1        ; offset: $0 (0)
  298. filler1                     ds.b   1        ; offset: $1 (1)        ;    Filler for proper byte alignment
  299. abResult                 ds.w   1        ; offset: $2 (2)
  300. abUserReference             ds.l   1        ; offset: $4 (4)
  301. atpSocket                 ds.w   1        ; offset: $8 (8)
  302. atpAddress                 ds     AddrBlock ; offset: $A (10)
  303. atpReqCount                 ds.w   1        ; offset: $E (14)
  304. atpDataPtr                 ds.l   1        ; offset: $10 (16)
  305. atpRspBDSPtr             ds.l   1        ; offset: $14 (20)
  306. atpBitMap                 ds.b   1        ; offset: $18 (24)
  307. filler2                     ds.b   1        ; offset: $19 (25)        ;    Filler for proper byte alignment
  308. atpTransID                 ds.w   1        ; offset: $1A (26)
  309. atpActCount                 ds.w   1        ; offset: $1C (28)
  310. atpUserData                 ds.l   1        ; offset: $1E (30)
  311. atpXO                     ds.b   1        ; offset: $22 (34)
  312. atpEOM                     ds.b   1        ; offset: $23 (35)
  313. atpTimeOut                 ds.w   1        ; offset: $24 (36)
  314. atpRetries                 ds.w   1        ; offset: $26 (38)
  315. atpNumBufs                 ds.w   1        ; offset: $28 (40)
  316. atpNumRsp                 ds.w   1        ; offset: $2A (42)
  317. atpBDSSize                 ds.w   1        ; offset: $2C (44)
  318. atpRspUData                 ds.l   1        ; offset: $2E (46)
  319. atpRspBuf                 ds.l   1        ; offset: $32 (50)
  320. atpRspSize                 ds.w   1        ; offset: $36 (54)
  321. sizeof                     EQU *            ; size:   $38 (56)
  322.                         ENDR
  323.  
  324. ; typedef struct ATATPRec     ATATPRec
  325. ; typedef ATATPRec             *ATATPRecPtr, **ATATPRecHandle
  326. AFPCommandBlock         RECORD    0
  327. cmdByte                     ds.b   1        ; offset: $0 (0)
  328. startEndFlag             ds.b   1        ; offset: $1 (1)
  329. forkRefNum                 ds.w   1        ; offset: $2 (2)
  330. rwOffset                 ds.l   1        ; offset: $4 (4)
  331. reqCount                 ds.l   1        ; offset: $8 (8)
  332. newLineFlag                 ds.b   1        ; offset: $C (12)
  333. newLineChar                 ds.b   1        ; offset: $D (13)
  334. sizeof                     EQU *            ; size:   $E (14)
  335.                         ENDR
  336.  
  337. ; typedef struct AFPCommandBlock  AFPCommandBlock
  338. ; typedef union MPPParamBlock  MPPParamBlock, *MPPPBPtr
  339. ; typedef union ATPParamBlock  ATPParamBlock, *ATPPBPtr
  340. ; typedef union XPPParamBlock  XPPParamBlock, *XPPParmBlkPtr
  341. WDSElement                 RECORD    0
  342. entryLength                 ds.w   1        ; offset: $0 (0)
  343. entryPtr                 ds.l   1        ; offset: $2 (2)
  344. sizeof                     EQU *            ; size:   $6 (6)
  345.                         ENDR
  346.  
  347. ; typedef struct WDSElement  WDSElement
  348. NTElement                 RECORD    0
  349. nteAddress                 ds     AddrBlock ; offset: $0 (0)        ;network address of entity
  350. filler                     ds.b   1        ; offset: $4 (4)
  351. entityData                 ds.b   99        ; offset: $5 (5)        ;Object, Type & Zone
  352. sizeof                     EQU *            ; size:   $68 (104)
  353.                         ENDR
  354.  
  355. ; typedef struct NTElement     NTElement
  356. NamesTableEntry         RECORD    0
  357. qNext                     ds.l   1        ; offset: $0 (0)        ;ptr to next NTE
  358. nt                         ds     NTElement ; offset: $4 (4)
  359. sizeof                     EQU *            ; size:   $6C (108)
  360.                         ENDR
  361.  
  362. ; typedef struct NamesTableEntry  NamesTableEntry
  363. MPPParamBlock             RECORD    0
  364. qLink                     ds.l   1        ; offset: $0 (0)
  365. qType                     ds.w   1        ; offset: $4 (4)
  366. ioTrap                     ds.w   1        ; offset: $6 (6)
  367. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  368. ioCompletion             ds.l   1        ; offset: $C (12)
  369. ioResult                 ds.w   1        ; offset: $10 (16)
  370. userData                 ds.l   1        ; offset: $12 (18)
  371. reqTID                     ds.w   1        ; offset: $16 (22)
  372. ioRefNum                 ds.w   1        ; offset: $18 (24)
  373. csCode                     ds.w   1        ; offset: $1A (26)
  374. filler0                     ds.w   1        ; offset: $1C (28)
  375. wdsPointer                 ds.l   1        ; offset: $1E (30)
  376.                          ORG 28
  377. protType                 ds.b   1        ; offset: $1C (28)
  378. filler                     ds.b   1        ; offset: $1D (29)
  379. handler                     ds.l   1        ; offset: $1E (30)
  380.                          ORG 28
  381. socket                     ds.b   1        ; offset: $1C (28)
  382. checksumFlag             ds.b   1        ; offset: $1D (29)
  383. listener                 ds.l   1        ; offset: $1E (30)
  384.                          ORG 28
  385. interval                 ds.b   1        ; offset: $1C (28)        ;retry interval 
  386. count                     ds.b   1        ; offset: $1D (29)        ;retry count 
  387. nbpPtrs                     ds.l   1        ; offset: $1E (30)
  388. verifyFlag                 ds.b   1        ; offset: $22 (34)
  389. filler3                     ds.b   1        ; offset: $23 (35)
  390.                          ORG 34
  391. retBuffPtr                 ds.l   1        ; offset: $22 (34)
  392. retBuffSize                 ds.w   1        ; offset: $26 (38)
  393. maxToGet                 ds.w   1        ; offset: $28 (40)
  394. numGotten                 ds.w   1        ; offset: $2A (42)
  395.                          ORG 34
  396. confirmAddr                 ds     AddrBlock ; offset: $22 (34)
  397. newSocket                 ds.b   1        ; offset: $26 (38)
  398. filler4                     ds.b   1        ; offset: $27 (39)
  399.                          ORG 28
  400. newSelfFlag                 ds.b   1        ; offset: $1C (28)        ;self-send toggle flag 
  401. oldSelfFlag                 ds.b   1        ; offset: $1D (29)        ;previous self-send state 
  402.                          ORG 28
  403. nKillQEl                 ds.l   1        ; offset: $1C (28)        ;ptr to i/o queue element to cancel 
  404.                          ORG 28
  405. version                     ds.w   1        ; offset: $1C (28)
  406. varsPtr                     ds.l   1        ; offset: $1E (30)
  407. DCEPtr                     ds.l   1        ; offset: $22 (34)
  408. portID                     ds.w   1        ; offset: $26 (38)
  409. configuration             ds.l   1        ; offset: $28 (40)
  410. selfSend                 ds.w   1        ; offset: $2C (44)
  411. netLo                     ds.w   1        ; offset: $2E (46)
  412. netHi                     ds.w   1        ; offset: $30 (48)
  413. ourAdd                     ds.l   1        ; offset: $32 (50)
  414. routerAddr                 ds.l   1        ; offset: $36 (54)
  415. numOfPHs                 ds.w   1        ; offset: $3A (58)
  416. numOfSkts                 ds.w   1        ; offset: $3C (60)
  417. numNBPEs                 ds.w   1        ; offset: $3E (62)
  418. nTQueue                     ds.l   1        ; offset: $40 (64)
  419. LAlength                 ds.w   1        ; offset: $44 (68)
  420. linkAddr                 ds.l   1        ; offset: $46 (70)
  421. zoneName                 ds.l   1        ; offset: $4A (74)
  422.                          ORG 28
  423. appName                     ds.l   1        ; offset: $1C (28)        ;pointer to application name in buffer
  424.                          ORG 78
  425. sizeof                     EQU *            ; size:   $4E (78)
  426.                         ENDR
  427.  
  428. XPPParamBlock             RECORD    0
  429. qLink                     ds.l   1        ; offset: $0 (0)
  430. qType                     ds.w   1        ; offset: $4 (4)
  431. ioTrap                     ds.w   1        ; offset: $6 (6)
  432. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  433. ioCompletion             ds.l   1        ; offset: $C (12)
  434. ioResult                 ds.w   1        ; offset: $10 (16)
  435. cmdResult                 ds.l   1        ; offset: $12 (18)
  436. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  437. ioRefNum                 ds.w   1        ; offset: $18 (24)
  438. csCode                     ds.w   1        ; offset: $1A (26)
  439. abortSCBPtr                 ds.l   1        ; offset: $1C (28)        ; SCB pointer for AbortOS
  440.                          ORG 28
  441. aspMaxCmdSize             ds.w   1        ; offset: $1C (28)
  442. aspQuantumSize             ds.w   1        ; offset: $1E (30)
  443. numSesss                 ds.w   1        ; offset: $20 (32)
  444.                          ORG 28
  445. sessRefnum                 ds.w   1        ; offset: $1C (28)
  446. aspTimeout                 ds.b   1        ; offset: $1E (30)
  447. aspRetry                 ds.b   1        ; offset: $1F (31)
  448. serverAddr                 ds     AddrBlock ; offset: $20 (32)
  449. scbPointer                 ds.l   1        ; offset: $24 (36)
  450. attnRoutine                 ds.l   1        ; offset: $28 (40)
  451.                          ORG 32
  452. cbSize                     ds.w   1        ; offset: $20 (32)
  453. cbPtr                     ds.l   1        ; offset: $22 (34)
  454. rbSize                     ds.w   1        ; offset: $26 (38)
  455. rbPtr                     ds.l   1        ; offset: $28 (40)
  456. afpAddrBlock             ds     AddrBlock ; offset: $2C (44)
  457. afpSCBPtr                 ds.l   1        ; offset: $30 (48)
  458. afpAttnRoutine             ds.l   1        ; offset: $34 (52)
  459.                          ORG 44
  460. wdSize                     ds.w   1        ; offset: $2C (44)
  461. wdPtr                     ds.l   1        ; offset: $2E (46)
  462. ccbStart                 ds.b   296        ; offset: $32 (50)
  463.                          ORG 28
  464. xppSubCode                 ds.w   1        ; offset: $1C (28)
  465. xppTimeout                 ds.b   1        ; offset: $1E (30)
  466. xppRetry                 ds.b   1        ; offset: $1F (31)
  467. filler1                     ds.w   1        ; offset: $20 (32)
  468. zipBuffPtr                 ds.l   1        ; offset: $22 (34)
  469. zipNumZones                 ds.w   1        ; offset: $26 (38)
  470. zipLastFlag                 ds.b   1        ; offset: $28 (40)
  471. filler2                     ds.b   1        ; offset: $29 (41)
  472. zipInfoField             ds.b   70        ; offset: $2A (42)
  473.                          ORG 346
  474. sizeof                     EQU *            ; size:   $15A (346)
  475.                         ENDR
  476.  
  477. ATPParamBlock             RECORD    0
  478. qLink                     ds.l   1        ; offset: $0 (0)
  479. qType                     ds.w   1        ; offset: $4 (4)
  480. ioTrap                     ds.w   1        ; offset: $6 (6)
  481. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  482. ioCompletion             ds.l   1        ; offset: $C (12)
  483. ioResult                 ds.w   1        ; offset: $10 (16)
  484. userData                 ds.l   1        ; offset: $12 (18)
  485. reqTID                     ds.w   1        ; offset: $16 (22)
  486. ioRefNum                 ds.w   1        ; offset: $18 (24)
  487. csCode                     ds.w   1        ; offset: $1A (26)
  488. atpSocket                 ds.b   1        ; offset: $1C (28)
  489. atpFlags                 ds.b   1        ; offset: $1D (29)
  490. addrBlock                 ds     AddrBlock ; offset: $1E (30)
  491. reqLength                 ds.w   1        ; offset: $22 (34)
  492. reqPointer                 ds.l   1        ; offset: $24 (36)
  493. bdsPointer                 ds.l   1        ; offset: $28 (40)
  494. numOfBuffs                 ds.b   1        ; offset: $2C (44)
  495. timeOutVal                 ds.b   1        ; offset: $2D (45)
  496. numOfResps                 ds.b   1        ; offset: $2E (46)
  497. retryCount                 ds.b   1        ; offset: $2F (47)
  498. intBuff                     ds.w   1        ; offset: $30 (48)
  499. TRelTime                 ds.b   1        ; offset: $32 (50)
  500. filler0                     ds.b   1        ; offset: $33 (51)
  501.                          ORG 44
  502. filler                     ds.b   1        ; offset: $2C (44)
  503. bdsSize                     ds.b   1        ; offset: $2D (45)
  504. transID                     ds.w   1        ; offset: $2E (46)
  505.                          ORG 44
  506. bitMap                     ds.b   1        ; offset: $2C (44)
  507. filler2                     ds.b   1        ; offset: $2D (45)
  508.                          ORG 44
  509. rspNum                     ds.b   1        ; offset: $2C (44)
  510. filler3                     ds.b   1        ; offset: $2D (45)
  511.                          ORG 44
  512. aKillQEl                 ds.l   1        ; offset: $2C (44)
  513.                          ORG 52
  514. sizeof                     EQU *            ; size:   $34 (52)
  515.                         ENDR
  516.  
  517. ;
  518. ; pascal OSErr OpenXPP(short *xppRefnum)
  519. ;
  520.     IF GENERATINGCFM THEN
  521.         IMPORT_CFM_FUNCTION    OpenXPP
  522.     ENDIF
  523.  
  524. ;
  525. ; pascal OSErr ASPOpenSession(XPPParmBlkPtr thePBptr, Boolean async)
  526. ;
  527.     IF GENERATINGCFM THEN
  528.         IMPORT_CFM_FUNCTION    ASPOpenSession
  529.     ENDIF
  530.  
  531. ;
  532. ; pascal OSErr ASPCloseSession(XPPParmBlkPtr thePBptr, Boolean async)
  533. ;
  534.     IF GENERATINGCFM THEN
  535.         IMPORT_CFM_FUNCTION    ASPCloseSession
  536.     ENDIF
  537.  
  538. ;
  539. ; pascal OSErr ASPAbortOS(XPPParmBlkPtr thePBptr, Boolean async)
  540. ;
  541.     IF GENERATINGCFM THEN
  542.         IMPORT_CFM_FUNCTION    ASPAbortOS
  543.     ENDIF
  544.  
  545. ;
  546. ; pascal OSErr ASPGetParms(XPPParmBlkPtr thePBptr, Boolean async)
  547. ;
  548.     IF GENERATINGCFM THEN
  549.         IMPORT_CFM_FUNCTION    ASPGetParms
  550.     ENDIF
  551.  
  552. ;
  553. ; pascal OSErr ASPCloseAll(XPPParmBlkPtr thePBptr, Boolean async)
  554. ;
  555.     IF GENERATINGCFM THEN
  556.         IMPORT_CFM_FUNCTION    ASPCloseAll
  557.     ENDIF
  558.  
  559. ;
  560. ; pascal OSErr ASPUserWrite(XPPParmBlkPtr thePBptr, Boolean async)
  561. ;
  562.     IF GENERATINGCFM THEN
  563.         IMPORT_CFM_FUNCTION    ASPUserWrite
  564.     ENDIF
  565.  
  566. ;
  567. ; pascal OSErr ASPUserCommand(XPPParmBlkPtr thePBptr, Boolean async)
  568. ;
  569.     IF GENERATINGCFM THEN
  570.         IMPORT_CFM_FUNCTION    ASPUserCommand
  571.     ENDIF
  572.  
  573. ;
  574. ; pascal OSErr ASPGetStatus(XPPParmBlkPtr thePBptr, Boolean async)
  575. ;
  576.     IF GENERATINGCFM THEN
  577.         IMPORT_CFM_FUNCTION    ASPGetStatus
  578.     ENDIF
  579.  
  580. ;
  581. ; pascal OSErr AFPCommand(XPPParmBlkPtr thePBptr, Boolean async)
  582. ;
  583.     IF GENERATINGCFM THEN
  584.         IMPORT_CFM_FUNCTION    AFPCommand
  585.     ENDIF
  586.  
  587. ;
  588. ; pascal OSErr GetLocalZones(XPPParmBlkPtr thePBptr, Boolean async)
  589. ;
  590.     IF GENERATINGCFM THEN
  591.         IMPORT_CFM_FUNCTION    GetLocalZones
  592.     ENDIF
  593.  
  594. ;
  595. ; pascal OSErr GetZoneList(XPPParmBlkPtr thePBptr, Boolean async)
  596. ;
  597.     IF GENERATINGCFM THEN
  598.         IMPORT_CFM_FUNCTION    GetZoneList
  599.     ENDIF
  600.  
  601. ;
  602. ; pascal OSErr GetMyZone(XPPParmBlkPtr thePBptr, Boolean async)
  603. ;
  604.     IF GENERATINGCFM THEN
  605.         IMPORT_CFM_FUNCTION    GetMyZone
  606.     ENDIF
  607.  
  608. ;
  609. ; pascal OSErr PAttachPH(MPPPBPtr thePBptr, Boolean async)
  610. ;
  611.     IF GENERATINGCFM THEN
  612.         IMPORT_CFM_FUNCTION    PAttachPH
  613.     ENDIF
  614.  
  615. ;
  616. ; pascal OSErr PDetachPH(MPPPBPtr thePBptr, Boolean async)
  617. ;
  618.     IF GENERATINGCFM THEN
  619.         IMPORT_CFM_FUNCTION    PDetachPH
  620.     ENDIF
  621.  
  622. ;
  623. ; pascal OSErr PWriteLAP(MPPPBPtr thePBptr, Boolean async)
  624. ;
  625.     IF GENERATINGCFM THEN
  626.         IMPORT_CFM_FUNCTION    PWriteLAP
  627.     ENDIF
  628.  
  629. ;
  630. ; pascal OSErr POpenSkt(MPPPBPtr thePBptr, Boolean async)
  631. ;
  632.     IF GENERATINGCFM THEN
  633.         IMPORT_CFM_FUNCTION    POpenSkt
  634.     ENDIF
  635.  
  636. ;
  637. ; pascal OSErr PCloseSkt(MPPPBPtr thePBptr, Boolean async)
  638. ;
  639.     IF GENERATINGCFM THEN
  640.         IMPORT_CFM_FUNCTION    PCloseSkt
  641.     ENDIF
  642.  
  643. ;
  644. ; pascal OSErr PWriteDDP(MPPPBPtr thePBptr, Boolean async)
  645. ;
  646.     IF GENERATINGCFM THEN
  647.         IMPORT_CFM_FUNCTION    PWriteDDP
  648.     ENDIF
  649.  
  650. ;
  651. ; pascal OSErr PRegisterName(MPPPBPtr thePBptr, Boolean async)
  652. ;
  653.     IF GENERATINGCFM THEN
  654.         IMPORT_CFM_FUNCTION    PRegisterName
  655.     ENDIF
  656.  
  657. ;
  658. ; pascal OSErr PLookupName(MPPPBPtr thePBptr, Boolean async)
  659. ;
  660.     IF GENERATINGCFM THEN
  661.         IMPORT_CFM_FUNCTION    PLookupName
  662.     ENDIF
  663.  
  664. ;
  665. ; pascal OSErr PConfirmName(MPPPBPtr thePBptr, Boolean async)
  666. ;
  667.     IF GENERATINGCFM THEN
  668.         IMPORT_CFM_FUNCTION    PConfirmName
  669.     ENDIF
  670.  
  671. ;
  672. ; pascal OSErr PRemoveName(MPPPBPtr thePBptr, Boolean async)
  673. ;
  674.     IF GENERATINGCFM THEN
  675.         IMPORT_CFM_FUNCTION    PRemoveName
  676.     ENDIF
  677.  
  678. ;
  679. ; pascal OSErr PSetSelfSend(MPPPBPtr thePBptr, Boolean async)
  680. ;
  681.     IF GENERATINGCFM THEN
  682.         IMPORT_CFM_FUNCTION    PSetSelfSend
  683.     ENDIF
  684.  
  685. ;
  686. ; pascal OSErr PKillNBP(MPPPBPtr thePBptr, Boolean async)
  687. ;
  688.     IF GENERATINGCFM THEN
  689.         IMPORT_CFM_FUNCTION    PKillNBP
  690.     ENDIF
  691.  
  692. ;
  693. ; pascal OSErr PGetAppleTalkInfo(MPPPBPtr thePBptr, Boolean async)
  694. ;
  695.     IF GENERATINGCFM THEN
  696.         IMPORT_CFM_FUNCTION    PGetAppleTalkInfo
  697.     ENDIF
  698.  
  699. ;
  700. ; pascal OSErr PATalkClosePrep(MPPPBPtr thePBptr, Boolean async)
  701. ;
  702.     IF GENERATINGCFM THEN
  703.         IMPORT_CFM_FUNCTION    PATalkClosePrep
  704.     ENDIF
  705.  
  706. ;
  707. ; pascal OSErr POpenATPSkt(ATPPBPtr thePBptr, Boolean async)
  708. ;
  709.     IF GENERATINGCFM THEN
  710.         IMPORT_CFM_FUNCTION    POpenATPSkt
  711.     ENDIF
  712.  
  713. ;
  714. ; pascal OSErr PCloseATPSkt(ATPPBPtr thePBPtr, Boolean async)
  715. ;
  716.     IF GENERATINGCFM THEN
  717.         IMPORT_CFM_FUNCTION    PCloseATPSkt
  718.     ENDIF
  719.  
  720. ;
  721. ; pascal OSErr PSendRequest(ATPPBPtr thePBPtr, Boolean async)
  722. ;
  723.     IF GENERATINGCFM THEN
  724.         IMPORT_CFM_FUNCTION    PSendRequest
  725.     ENDIF
  726.  
  727. ;
  728. ; pascal OSErr PGetRequest(ATPPBPtr thePBPtr, Boolean async)
  729. ;
  730.     IF GENERATINGCFM THEN
  731.         IMPORT_CFM_FUNCTION    PGetRequest
  732.     ENDIF
  733.  
  734. ;
  735. ; pascal OSErr PSendResponse(ATPPBPtr thePBPtr, Boolean async)
  736. ;
  737.     IF GENERATINGCFM THEN
  738.         IMPORT_CFM_FUNCTION    PSendResponse
  739.     ENDIF
  740.  
  741. ;
  742. ; pascal OSErr PAddResponse(ATPPBPtr thePBPtr, Boolean async)
  743. ;
  744.     IF GENERATINGCFM THEN
  745.         IMPORT_CFM_FUNCTION    PAddResponse
  746.     ENDIF
  747.  
  748. ;
  749. ; pascal OSErr PRelTCB(ATPPBPtr thePBPtr, Boolean async)
  750. ;
  751.     IF GENERATINGCFM THEN
  752.         IMPORT_CFM_FUNCTION    PRelTCB
  753.     ENDIF
  754.  
  755. ;
  756. ; pascal OSErr PRelRspCB(ATPPBPtr thePBPtr, Boolean async)
  757. ;
  758.     IF GENERATINGCFM THEN
  759.         IMPORT_CFM_FUNCTION    PRelRspCB
  760.     ENDIF
  761.  
  762. ;
  763. ; pascal OSErr PNSendRequest(ATPPBPtr thePBPtr, Boolean async)
  764. ;
  765.     IF GENERATINGCFM THEN
  766.         IMPORT_CFM_FUNCTION    PNSendRequest
  767.     ENDIF
  768.  
  769. ;
  770. ; pascal OSErr PKillSendReq(ATPPBPtr thePBPtr, Boolean async)
  771. ;
  772.     IF GENERATINGCFM THEN
  773.         IMPORT_CFM_FUNCTION    PKillSendReq
  774.     ENDIF
  775.  
  776. ;
  777. ; pascal OSErr PKillGetReq(ATPPBPtr thePBPtr, Boolean async)
  778. ;
  779.     IF GENERATINGCFM THEN
  780.         IMPORT_CFM_FUNCTION    PKillGetReq
  781.     ENDIF
  782.  
  783. ;
  784. ; pascal OSErr ATPKillAllGetReq(ATPPBPtr thePBPtr, Boolean async)
  785. ;
  786.     IF GENERATINGCFM THEN
  787.         IMPORT_CFM_FUNCTION    ATPKillAllGetReq
  788.     ENDIF
  789.  
  790. ;
  791. ; pascal void BuildLAPwds(Ptr wdsPtr, Ptr dataPtr, short destHost, short prototype, short frameLen)
  792. ;
  793.     IF GENERATINGCFM THEN
  794.         IMPORT_CFM_FUNCTION    BuildLAPwds
  795.     ENDIF
  796.  
  797. ;
  798. ; pascal void BuildDDPwds(Ptr wdsPtr, Ptr headerPtr, Ptr dataPtr, AddrBlock netAddr, short ddpType, short dataLen)
  799. ;
  800.     IF GENERATINGCFM THEN
  801.         IMPORT_CFM_FUNCTION    BuildDDPwds
  802.     ENDIF
  803.  
  804. ;
  805. ; pascal void NBPSetEntity(Ptr buffer, ConstStr32Param nbpObject, ConstStr32Param nbpType, ConstStr32Param nbpZone)
  806. ;
  807.     IF GENERATINGCFM THEN
  808.         IMPORT_CFM_FUNCTION    NBPSetEntity
  809.     ENDIF
  810.  
  811. ;
  812. ; pascal void NBPSetNTE(Ptr ntePtr, ConstStr32Param nbpObject, ConstStr32Param nbpType, ConstStr32Param nbpZone, short socket)
  813. ;
  814.     IF GENERATINGCFM THEN
  815.         IMPORT_CFM_FUNCTION    NBPSetNTE
  816.     ENDIF
  817.  
  818. ;
  819. ; pascal short GetBridgeAddress(void)
  820. ;
  821.     IF GENERATINGCFM THEN
  822.         IMPORT_CFM_FUNCTION    GetBridgeAddress
  823.     ENDIF
  824.  
  825. ;
  826. ; pascal short BuildBDS(Ptr buffPtr, Ptr bdsPtr, short buffSize)
  827. ;
  828.     IF GENERATINGCFM THEN
  829.         IMPORT_CFM_FUNCTION    BuildBDS
  830.     ENDIF
  831.  
  832. ;
  833. ; pascal OSErr MPPOpen(void)
  834. ;
  835.     IF GENERATINGCFM THEN
  836.         IMPORT_CFM_FUNCTION    MPPOpen
  837.     ENDIF
  838.  
  839. ;
  840. ; pascal OSErr LAPAddATQ(ATQEntryPtr theATQEntry)
  841. ;
  842.     IF GENERATINGCFM THEN
  843.         IMPORT_CFM_FUNCTION    LAPAddATQ
  844.     ENDIF
  845.  
  846. ;
  847. ; pascal OSErr LAPRmvATQ(ATQEntryPtr theATQEntry)
  848. ;
  849.     IF GENERATINGCFM THEN
  850.         IMPORT_CFM_FUNCTION    LAPRmvATQ
  851.     ENDIF
  852.  
  853. ;
  854. ; pascal OSErr ATPLoad(void)
  855. ;
  856.     IF GENERATINGCFM THEN
  857.         IMPORT_CFM_FUNCTION    ATPLoad
  858.     ENDIF
  859.  
  860. ;
  861. ; pascal OSErr ATPUnload(void)
  862. ;
  863.     IF GENERATINGCFM THEN
  864.         IMPORT_CFM_FUNCTION    ATPUnload
  865.     ENDIF
  866.  
  867. ;
  868. ; pascal OSErr NBPExtract(Ptr theBuffer, short numInBuf, short whichOne, EntityName *abEntity, AddrBlock *address)
  869. ;
  870.     IF GENERATINGCFM THEN
  871.         IMPORT_CFM_FUNCTION    NBPExtract
  872.     ENDIF
  873.  
  874. ;
  875. ; pascal OSErr GetNodeAddress(short *myNode, short *myNet)
  876. ;
  877.     IF GENERATINGCFM THEN
  878.         IMPORT_CFM_FUNCTION    GetNodeAddress
  879.     ENDIF
  880.  
  881. ;
  882. ; pascal Boolean IsMPPOpen(void)
  883. ;
  884.     IF GENERATINGCFM THEN
  885.         IMPORT_CFM_FUNCTION    IsMPPOpen
  886.     ENDIF
  887.  
  888. ;
  889. ; pascal Boolean IsATPOpen(void)
  890. ;
  891.     IF GENERATINGCFM THEN
  892.         IMPORT_CFM_FUNCTION    IsATPOpen
  893.     ENDIF
  894.  
  895. ;
  896. ; pascal void ATEvent(long event, Ptr infoPtr)
  897. ;
  898.     IF GENERATINGCFM THEN
  899.         IMPORT_CFM_FUNCTION    ATEvent
  900.     ENDIF
  901.  
  902. ;
  903. ; pascal OSErr ATPreFlightEvent(long event, long cancel, Ptr infoPtr)
  904. ;
  905.     IF GENERATINGCFM THEN
  906.         IMPORT_CFM_FUNCTION    ATPreFlightEvent
  907.     ENDIF
  908.  
  909. ;
  910. ;    The following routines are obsolete and will not be supported on
  911. ;    PowerPC. Equivalent functionality is provided by the routines
  912. ;    above.
  913. ;
  914.     IF OLDROUTINENAMES  ** ¬ GENERATINGCFM  THEN
  915. ;
  916. ; pascal OSErr MPPClose(void)
  917. ;
  918.     IF GENERATINGCFM THEN
  919.         IMPORT_CFM_FUNCTION    MPPClose
  920.     ENDIF
  921.  
  922. ;
  923. ; pascal OSErr LAPOpenProtocol(ABByte theLAPType, Ptr protoPtr)
  924. ;
  925.     IF GENERATINGCFM THEN
  926.         IMPORT_CFM_FUNCTION    LAPOpenProtocol
  927.     ENDIF
  928.  
  929. ;
  930. ; pascal OSErr LAPCloseProtocol(ABByte theLAPType)
  931. ;
  932.     IF GENERATINGCFM THEN
  933.         IMPORT_CFM_FUNCTION    LAPCloseProtocol
  934.     ENDIF
  935.  
  936. ;
  937. ; pascal OSErr LAPWrite(ATLAPRecHandle abRecord, Boolean async)
  938. ;
  939.     IF GENERATINGCFM THEN
  940.         IMPORT_CFM_FUNCTION    LAPWrite
  941.     ENDIF
  942.  
  943. ;
  944. ; pascal OSErr LAPRead(ATLAPRecHandle abRecord, Boolean async)
  945. ;
  946.     IF GENERATINGCFM THEN
  947.         IMPORT_CFM_FUNCTION    LAPRead
  948.     ENDIF
  949.  
  950. ;
  951. ; pascal OSErr LAPRdCancel(ATLAPRecHandle abRecord)
  952. ;
  953.     IF GENERATINGCFM THEN
  954.         IMPORT_CFM_FUNCTION    LAPRdCancel
  955.     ENDIF
  956.  
  957. ;
  958. ; pascal OSErr DDPOpenSocket(short *theSocket, Ptr sktListener)
  959. ;
  960.     IF GENERATINGCFM THEN
  961.         IMPORT_CFM_FUNCTION    DDPOpenSocket
  962.     ENDIF
  963.  
  964. ;
  965. ; pascal OSErr DDPCloseSocket(short theSocket)
  966. ;
  967.     IF GENERATINGCFM THEN
  968.         IMPORT_CFM_FUNCTION    DDPCloseSocket
  969.     ENDIF
  970.  
  971. ;
  972. ; pascal OSErr DDPRead(ATDDPRecHandle abRecord, Boolean retCksumErrs, Boolean async)
  973. ;
  974.     IF GENERATINGCFM THEN
  975.         IMPORT_CFM_FUNCTION    DDPRead
  976.     ENDIF
  977.  
  978. ;
  979. ; pascal OSErr DDPWrite(ATDDPRecHandle abRecord, Boolean doChecksum, Boolean async)
  980. ;
  981.     IF GENERATINGCFM THEN
  982.         IMPORT_CFM_FUNCTION    DDPWrite
  983.     ENDIF
  984.  
  985. ;
  986. ; pascal OSErr DDPRdCancel(ATDDPRecHandle abRecord)
  987. ;
  988.     IF GENERATINGCFM THEN
  989.         IMPORT_CFM_FUNCTION    DDPRdCancel
  990.     ENDIF
  991.  
  992. ;
  993. ; pascal OSErr ATPOpenSocket(AddrBlock addrRcvd, short *atpSocket)
  994. ;
  995.     IF GENERATINGCFM THEN
  996.         IMPORT_CFM_FUNCTION    ATPOpenSocket
  997.     ENDIF
  998.  
  999. ;
  1000. ; pascal OSErr ATPCloseSocket(short atpSocket)
  1001. ;
  1002.     IF GENERATINGCFM THEN
  1003.         IMPORT_CFM_FUNCTION    ATPCloseSocket
  1004.     ENDIF
  1005.  
  1006. ;
  1007. ; pascal OSErr ATPSndRequest(ATATPRecHandle abRecord, Boolean async)
  1008. ;
  1009.     IF GENERATINGCFM THEN
  1010.         IMPORT_CFM_FUNCTION    ATPSndRequest
  1011.     ENDIF
  1012.  
  1013. ;
  1014. ; pascal OSErr ATPRequest(ATATPRecHandle abRecord, Boolean async)
  1015. ;
  1016.     IF GENERATINGCFM THEN
  1017.         IMPORT_CFM_FUNCTION    ATPRequest
  1018.     ENDIF
  1019.  
  1020. ;
  1021. ; pascal OSErr ATPReqCancel(ATATPRecHandle abRecord, Boolean async)
  1022. ;
  1023.     IF GENERATINGCFM THEN
  1024.         IMPORT_CFM_FUNCTION    ATPReqCancel
  1025.     ENDIF
  1026.  
  1027. ;
  1028. ; pascal OSErr ATPGetRequest(ATATPRecHandle abRecord, Boolean async)
  1029. ;
  1030.     IF GENERATINGCFM THEN
  1031.         IMPORT_CFM_FUNCTION    ATPGetRequest
  1032.     ENDIF
  1033.  
  1034. ;
  1035. ; pascal OSErr ATPSndRsp(ATATPRecHandle abRecord, Boolean async)
  1036. ;
  1037.     IF GENERATINGCFM THEN
  1038.         IMPORT_CFM_FUNCTION    ATPSndRsp
  1039.     ENDIF
  1040.  
  1041. ;
  1042. ; pascal OSErr ATPAddRsp(ATATPRecHandle abRecord)
  1043. ;
  1044.     IF GENERATINGCFM THEN
  1045.         IMPORT_CFM_FUNCTION    ATPAddRsp
  1046.     ENDIF
  1047.  
  1048. ;
  1049. ; pascal OSErr ATPResponse(ATATPRecHandle abRecord, Boolean async)
  1050. ;
  1051.     IF GENERATINGCFM THEN
  1052.         IMPORT_CFM_FUNCTION    ATPResponse
  1053.     ENDIF
  1054.  
  1055. ;
  1056. ; pascal OSErr ATPRspCancel(ATATPRecHandle abRecord, Boolean async)
  1057. ;
  1058.     IF GENERATINGCFM THEN
  1059.         IMPORT_CFM_FUNCTION    ATPRspCancel
  1060.     ENDIF
  1061.  
  1062. ;
  1063. ; pascal OSErr NBPRegister(ATNBPRecHandle abRecord, Boolean async)
  1064. ;
  1065.     IF GENERATINGCFM THEN
  1066.         IMPORT_CFM_FUNCTION    NBPRegister
  1067.     ENDIF
  1068.  
  1069. ;
  1070. ; pascal OSErr NBPLookup(ATNBPRecHandle abRecord, Boolean async)
  1071. ;
  1072.     IF GENERATINGCFM THEN
  1073.         IMPORT_CFM_FUNCTION    NBPLookup
  1074.     ENDIF
  1075.  
  1076. ;
  1077. ; pascal OSErr NBPConfirm(ATNBPRecHandle abRecord, Boolean async)
  1078. ;
  1079.     IF GENERATINGCFM THEN
  1080.         IMPORT_CFM_FUNCTION    NBPConfirm
  1081.     ENDIF
  1082.  
  1083. ;
  1084. ; pascal OSErr NBPRemove(EntityPtr abEntity)
  1085. ;
  1086.     IF GENERATINGCFM THEN
  1087.         IMPORT_CFM_FUNCTION    NBPRemove
  1088.     ENDIF
  1089.  
  1090. ;
  1091. ; pascal OSErr NBPLoad(void)
  1092. ;
  1093.     IF GENERATINGCFM THEN
  1094.         IMPORT_CFM_FUNCTION    NBPLoad
  1095.     ENDIF
  1096.  
  1097. ;
  1098. ; pascal OSErr NBPUnload(void)
  1099. ;
  1100.     IF GENERATINGCFM THEN
  1101.         IMPORT_CFM_FUNCTION    NBPUnload
  1102.     ENDIF
  1103.  
  1104.     ENDIF
  1105.     ENDIF ; __APPLETALK__
  1106.